@import './common.less';

.top-nav {
    position: fixed;
    z-index:10;
    top: 0;
    background: @blue;
    height: 70px;
    width: 100%;
    line-height: 70px;
    vertical-align: middle;
    .logo {
        img {
            vertical-align: middle;
        }
    }
    .link-list {
        padding: 0;
        margin: 0;
        list-style: none;
        color: #fff;
        &.small {
            a {
                font-size: 14px;
            }
            li {
                margin-left: 0;
            }
        }
        li {
            float: left;
            margin-left: 20px;
            &.selected a {
                color: #ffeb3b;
            }
        }
        a {
            text-decoration: none;
            color: #fff;
            font-size: 16px;
            padding: 0 8px;
        }
        .drop-menu {
            &:hover {
                ul {
                    display: block;
                }
            }
            ul {
                background: #fff;
                position: absolute;
                box-shadow: 0 0 5px #ccc;
                list-style: none;
                margin: 0;
                margin-top: -12px;
                padding: 0;
                display: none;
                border-radius: 3px;
            }
            li {
                float: none;
                margin: 0;
                padding: 0 12px;
                line-height: 36px;
                font-size: 14px;
                a {
                    color: #555;
                    &:hover {
                        color: #337ab7;
                    }
                }
            }
            a {
                padding: 0 16px;
            }
        }
    }
    .nav-search-bar {
        margin: 0 12px;
        position: relative;
        input {
            color: #3D5066;
            background: #0067B0;
            transition: all .3s linear;
            height: 30px;
            border: 0;
            border-radius: 15px;
            outline: 0;
            padding-left: 10px;
            padding-right: 30px;
            font-size: 12px;
            width: 160px;
            &:focus {
                color: #333;
                background: #fff;
            }
            &::-webkit-input-placeholder { /* WebKit browsers */
                color: #95b5da;
            }
            &::-moz-placeholder { /* Mozilla Firefox 4 to 18 */
                color: #95b5da;
            }
            &::-moz-placeholder { /* Mozilla Firefox 19+ */
                color: #95b5da;
            }
            &::-ms-input-placeholder { /* Internet Explorer 10+ */
                color: #95b5da;
            }
        }
        button {
            position: absolute;
            background: url("/style/img/icon-search.png");
            border: 0;
            height: 14px;
            top: 0;
            right: 8px;
            margin-top: 30px;
        }
    }
}
